package persistent.prestige.web.demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import persistent.prestige.web.base.annotation.MybatisScan;
import persistent.prestige.web.demo.model.Order;
import persistent.prestige.web.demo.model.OrderItem;

@MybatisScan
public interface OrderDao {
	
	void addOrder(Order order);
	void addOrderItem(@Param("orderId") Integer orderId, @Param("items") List<OrderItem> items);
	
	List<Order> findOrders(@Param("uid") String uid);
	
	
	void updateOrder(Order order);
	
	Integer countOrder();
	

}
